package com.dacool.http;

import java.util.HashMap;

public class TrackOrderRequest extends BaseRequest {

	/**
	 * "success":true, "data":{ "orderId":"2014042718125416", "status":"发货中",
	 * "orderTrack":[ {"time":"2014-04-27 14:16:40","descript":"您提交的订单，等待审核中。"},
	 * {"time":"2014-04-27 15:10:16","descript":"您的订单配货中。"},
	 * {"time":"2014-04-27 15:30:08","descript":"您的订单派送中。"},
	 * {"time":"2014-04-27 16:07:21","descript":"您的订单已到达分中心。"} ] }
	 */

	private long orderId;

	public TrackOrderRequest setOrderId(long orderId) {
		this.orderId = orderId;
		return this;
	}

	@Override
	protected String url() {
		// TODO Auto-generated method stub
		return "orderTrack.jsn";
	}

	@Override
	protected void generateParams(HashMap<String, Object> map) {
		// TODO Auto-generated method stub
		map.put("orderId", orderId);
	}

	@Override
	protected boolean isGet() {
		// TODO Auto-generated method stub
		return true;
	}

}
